package com.thomas.framework.dao;


import com.thomas.framework.core.IDao;
import com.thomas.framework.entity.SysModel;
import com.thomas.framework.entity.SysRole;
import com.thomas.framework.entity.SysUser;

import java.util.List;

/**
 * Created by taohj on 2014/4/22.
 */
public interface ISysModelDao extends IDao<SysModel> {


    /**
     * 根据用户查找相应的功能菜单
     * */
    List<SysModel> selectMenuByUser(SysUser user);

    /**
     *
     * */
    List<SysModel> selectFunctionByUser(SysUser user);


    /**
     * 根据用
     * */
    List<SysModel> selectList(SysModel model);


    List<SysModel> seleFunctionMenuBySysRole(SysRole role);



    List<SysModel> selectMenuByAdmin();


    List<SysModel> selectFunctionByAdmin();
}
